package com.kang.gaklibrary.service.impl;

import com.kang.gaklibrary.mapper.UserFriendMapper;
import com.kang.gaklibrary.model.UserFriend;
import com.kang.gaklibrary.service.UserFriendService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserFriendImpl implements UserFriendService {
    @Autowired
    private UserFriendMapper userFriendMapper;

    @Override
    public List<UserFriend> selectAllFriendById(String userId) {
        return userFriendMapper.selectByPrimaryKey(userId);
    }
}
